<div id="title">
	<b>Склад</b>
</div>


<div id="menu">
	<a href="/index.php?page=categories"><b>Категорії</b></a>&nbsp;&nbsp;&nbsp;&nbsp;
<?php
if ($_SESSION['login']=="admin") 
{
?>
	<a href="/index.php?page=companies"><b>Компанії</b></a>
<?php	
}
?>
</div>


<div id="search">
<form name="searchform" method="post" action="/index.php?page=search">
	Пошук: <input type="text" name="search" size="40"/>
</form>
</div>


<div id="auth">
<?php
if(!isset($_SESSION['logged']) or empty($_SESSION['logged']))
{
?>
<a href="/index.php?page=authorization" id="input">Вхід</a>
<?php
}
else
{
?>	
<form name="form" method="post">
	<font color="red"><b><?php print($_SESSION['login']) ?></b></font> <input type="submit" name="submitlogout" value="Logout" />
</form>
<?php
}
?>
</div>
